package routers

import (
	"github.com/astaxie/beego"
	"read.com/admin/controllers"
)

func init() {
	// 默认登录
	beego.Router("/", &controllers.LoginController{}, "*:LoginIn")
	beego.Router("/login", &controllers.LoginController{}, "*:LoginIn")
	beego.Router("/login_out", &controllers.LoginController{}, "*:LoginOut")
	beego.Router("/no_auth", &controllers.LoginController{}, "*:NoAuth")
	beego.Router("/home", &controllers.HomeController{}, "*:Index")
	beego.Router("/home/start", &controllers.HomeController{}, "*:Start")

	beego.AutoRouter(&controllers.AuthController{})
	beego.AutoRouter(&controllers.RoleController{})
	beego.AutoRouter(&controllers.AdminController{})
	beego.AutoRouter(&controllers.ProfileController{})

	beego.AutoRouter(&controllers.BookController{})
	beego.AutoRouter(&controllers.HomepageController{})
	beego.AutoRouter(&controllers.RankController{})
	beego.AutoRouter(&controllers.BookratingController{})
	beego.AutoRouter(&controllers.OrderController{})
	beego.AutoRouter(&controllers.RatingamountController{})
	beego.AutoRouter(&controllers.UserController{})
	beego.AutoRouter(&controllers.GiftController{})
	beego.AutoRouter(&controllers.ChangeController{})
	beego.AutoRouter(&controllers.AccountController{})
	beego.AutoRouter(&controllers.UserratingController{})
	beego.AutoRouter(&controllers.OperateController{})
	beego.AutoRouter(&controllers.MenuController{})
	beego.AutoRouter(&controllers.GroupController{})
	beego.AutoRouter(&controllers.StatisticController{})
	beego.AutoRouter(&controllers.BookreportController{})
	beego.AutoRouter(&controllers.TropismController{})
	beego.AutoRouter(&controllers.PeriodController{})
}
